﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMIS.FrameWork.Repository;
using HMIS.FrameWork.DomainBase;

namespace HMIS.Infrastructure.Core.Repositories
{
	//字典项的数据库访问接口
	public interface IDictionaryRepository : IRepository<Dictionary>
	{
		/// <summary>
		/// 返回所有字典
		/// </summary>
		/// <returns></returns>
		IList<Dictionary> GetPlistAll();

		//通过字典类别Id获取字典项列表
		IList<Dictionary> GetPlistByCategoryId(string id, int start, int limit, string sort, string dir,List<DataFilter> filters, out long total);

		IList<Dictionary> GetPlistByCategoryCode(string code, string query, int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);

		bool IsFieldExist(string fieldName, string fieldValue, string id);
	}
}
